import request from '@/utils/request'

export default {
  categoryList(params) {
    return request({
      url: '/v1/specialCategoryList',
      method: 'get',
      params
    })
  },
  getOne(id) {
    return request({
      url: `/v1/specialCategory/${id}`,
      method: 'get'
    })
  },
  update(data) {
    return request({
      url: '/v1/specialCategoryUpdate',
      method: 'post',
      data
    })
  },
  create(data) {
    return request({
      url: '/v1/specialCategoryAdd',
      method: 'post',
      data
    })
  },
  delete(id) {
    return request({
      url: `/v1/specialCategoryDel/${id}`,
      method: 'get'
    })
  },
  otherAdmin(data) {
    return request({
      url: '/v1/specialCategoryAdminAdd',
      method: 'post',
      data
    })
  },
  delOtherAdmin(data) {
    return request({
      url: '/v1/specialCategoryAdminDel',
      method: 'post',
      data
    })
  }
}
